// pages/order/orderCompleted/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderId: '13123111123_DH',
    customerName: wx.getStorageSync('custName'),
    orderAmount: '420.00'
  },

  goOrderDetail() {
    wx.redirectTo({
      url: '../orderList/index',
    })
  },
  goGoodsList() {
    wx.navigateTo({
      url: '../../goods/goodsList/index',
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    // todo: 返回上个页面携带的订单号和客户名称
    this.setData({
      orderId: options.id,

    })
  },

 
})